package com.h.demo.service.impl;

import com.h.demo.mapper.ProductMapper;
import com.h.demo.modle.ProductInfo;
import com.h.demo.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl implements ProductService{
    @Autowired
    private ProductMapper productMapper;

    @Override
    public ProductInfo getProductById(Integer productId) {
        return productMapper.selectById(productId);
    }
}
